//
//  LGDeviceSendCardView.m
//  HeartDiseaseManage
//
//  Created by 1234 on 2023/11/9.
//

#import "LGDeviceSendCardView.h"

@implementation LGDeviceSendCardView

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self setShadoWithColor:@"#B2BDC7" offset:CGSizeMake(0, 2) opacity:0.15 radius:15];
        self.backgroundColor = [UIColor whiteColor];
        [self addSubview:self.titleBtn];
    }
    return self;
}

-(UIButton *)titleBtn{
    if(!_titleBtn){
        _titleBtn = [UIButton buttonWithTitle:@"" titleFont:LGFontWeight(16, UIFontWeightMedium) textColor:@"#333333" imageName:@""];
        _titleBtn.frame = CGRectMake(0, viewPix(15), viewPix(150), viewPix(23));
        _titleBtn.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
        _titleBtn.imageEdgeInsets = UIEdgeInsetsMake(0, viewPix(12), 0, 0);
        _titleBtn.titleEdgeInsets = UIEdgeInsetsMake(0, viewPix(16), 0, 0);
        _titleBtn.userInteractionEnabled = NO;
    }
    return _titleBtn;
}

@end
